package com.letv.core.network.volley.toolbox;

import com.letv.core.bean.DataHull;
import com.letv.core.bean.LetvBaseBean;
import com.letv.core.network.volley.VolleyRequest;
import com.letv.core.network.volley.VolleyResponse.CacheResponseState;
import com.letv.core.network.volley.VolleyResponse.NetworkResponseState;
import com.letv.core.network.volley.listener.OnEntryResponse;

/**
 * 简化接口请求回调函数(让调用者按照需求选择回调方法)
 * 
 * @author zhuqiao
 * 
 */
public class SimpleResponse<T extends LetvBaseBean> implements OnEntryResponse<T> {

    @Override
    public void onNetworkResponse(VolleyRequest<T> request, T result, DataHull hull, NetworkResponseState state) {
    }

    @Override
    public void onCacheResponse(VolleyRequest<T> request, T result, DataHull hull, CacheResponseState state) {
    }

    @Override
    public void onErrorReport(VolleyRequest<T> request, String errorInfo) {
    }

}
